package com.bsoft.gol.editor.dao;

import ctd.persistence.annotation.DAOMethod;
import ctd.persistence.annotation.DAOParam;
import com.bsoft.gol.editor.editor.EditorOrganization;

import java.util.List;

public abstract class EditorOrganizationDAO extends ctd.persistence.support.hibernate.HibernateSupportDelegateDAO<EditorOrganization>{
    public EditorOrganizationDAO() {
        this.setKeyField("Id");
    }


    @DAOMethod(sql = "from EditorOrganization where organizationId=:organizationId")
    public abstract EditorOrganization getEditorOrganizationById(@DAOParam("organizationId") String organizationId);

    @DAOMethod(sql = " from  EditorOrganization  ")
    public abstract List<EditorOrganization> queryEditorOrganizatiorList();

}
